<include file="__PUBLIC__/header.html" />
	<title>剧集 - {$const.webname}</title>
	<script type="text/javascript">
		var xid="{$field.xid}";
	</script>
	<script type="text/javascript" src="__CONTROL_TPL__/js/js.js"></script>
<include file="__PUBLIC__/top.html" />


	<!-- 内容开始 -->
	<div class="w1180 auto mt20 fix p5">
		<div class="fm mb30 h600 bgteal white">
			<object width="100%" height="600"  type="application/x-shockwave-flash" data="{$field.firstUrl}">
			<param value="{$field.firstUrl}" name="movie">
			<param name="wmode" value="transparent">
			<param name="allowFullScreen" value="true">
			<param name="allowScriptAccess" value="always">
			<param name="flashvars" value="isAutoPlay=false&quality=high">
			<embed src="{$field.firstUrl}"  allowscriptaccess="always" wmode="Opaque" quality="high" allowfullscreen="true" type="application/x-shockwave-flash"></embed>
			</object>
		</div>
		<!-- 左侧开始 -->
		<div class="f w860 mr20 l">
			<div class="bsd1 bgwhite pt10">
				<div class="lh50 pl20 fm b rel f18">
					【{$field.title}】 
					<if value="field.jname">
						{$field.jname|mb_substr:0,16,'utf8'}
					</if>
					 {$field.num}	
					<span class="p5 fs n f14 orange">{$field.comp|getXilieComp}更新</span>
					<!-- 分享开始 -->
					<div class="dib r mt10 mr10">
						<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a><a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a><a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a><a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a><a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a></div>
						<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
					</div>
					<!-- 分享结束 -->
				</div>
				<div class="p10 f14 ml10 of">
					<span class="bgblue1 white f14 p5 pl10 pr10">追我</span>
					已有<span class="gray">{$field.fllow}</span>人追过该系列 <span class="gray ml100">更新到第{$field.act}集</span>
					<div class="mt20 fm f16 w500 l mr30" id="juji">
						<?php 
							$t=count($field['juji']);
							$i=1;
							foreach ($field['juji'] as $ju) :
								if(isset($_GET['num'])) $act = ($_GET['num']==$t) ?'bgblue':'bgwhite-5';
								if($i==1):
						?>
							<a href="{|U('content',array('num'=>$t,'jid'=>$ju['jid'],'xid'=>$_GET['xid'],'cid'=>$_GET['cid']))}" class="bgblue {$act} p5 btn dib mr10 rel mt5 white new"><?php echo $t ;?></a>
						<?php else: ?>
							<a href="{|U('content',array('num'=>$t,'jid'=>$ju['jid'],'xid'=>$_GET['xid'],'cid'=>$_GET['cid']))}" class="{$act} p5 btn  dib  mr10 rel mt5 black3"><?php echo $t ;?></a>
						<?php endif; $i++;$t--; endforeach; ?>
					</div>
					<div class="ding l w200 fix p20 ml30">
						<div class="le">
							<p class="dingT orange3 fg f22 tc b">{$field.ding}</p>
							<p class="tc"><a stat="1" href="{|U('ding')}" onclick="return ding(this)" class="di"></a></p>
						</div>
						<div class="ri">
							<p class="downT orange3 fg f22 tc b">{$field.down}</p>
							<p class="tc"><a stat="0" href="{|U('ding')}" onclick="return ding(this)" class="di"></a></p>
						</div>
					</div>
				</div>
				
			</div>
			<!-- 评论区域开始 -->
			<div class="f w860 bsd1 mr20 l bgwhite mt20 pb10 pt10">
				<div class="lh30 pl20 fm b rel f14"><span class="mr10">系列影片点评</span> <span class="gray1">已有 <b id="commentNumDown">{$field.comments}</b> 条短评</span> <b class="abs bgblue h30 w5 f0 l-5 t0"></b></div>
				<div class="bbd ml20 mr20 mt10 pb10 pl80 rel">
					<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>
					<form action="{|U('XilieComment/add')}" method="post" onsubmit="return ajax(this);">
						<input type="hidden" name="xid" value="{$field.xid}" />
						<textarea class="p5" name="content" id="commcont" cols="140" rows="5"></textarea>
						<p class="p5 tr mt10">
							<span class="gray">还可以发表 <span class="zishu red fg f14 b">2000</span> 字</span>
							<input type="submit" class="btn bgblue" value="发表评论" />
						</p>
					</form>
				</div>
				<div id="commentWrap">
					<!-- 用户评论 -->
					<!-- <div class="bbd ml20 mr20 mt10 pb10 pl80 rel">
						<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>
						<div class="p5">
							<p class="gray p5"><a class="gray f12" href="">老地方</a></p>
							<p class="p5 f14">没有星爷的声音，就不是星爷的电影了。</p>
							<p class="gray p5 f12">2014-5-24 05:05:46</p> -->
							<!-- 用户评论引用 -->
							<!-- <div class="btd ml20 mr20 mt10 pb10 pt10 pl80 rel">
								<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>
								<div class="p5">
									<p class="gray p5"><a class="gray f12" href="">老地方</a></p>
									<p class="p5 f14">没有星爷的声音，就不是星爷的电影了。</p>
									<p class="gray p5 f12">2014-5-24 05:05:46</p>
								</div>
							</div> -->
							<!-- 用户评论引用结束 -->
						<!-- </div>
					</div> -->
					<!-- 用户评论结束 -->
				
					<!-- 用户评论 -->
					<list from="$comment" name="c">
						<div class="bbd ml20 mr20 mt10 pb10 pl80 rel">
							<div class="abs l0">
								<a class="dib bdc">
									<if value="!$c.pic">
										<img src="__TPL__/img/logo.png" alt="" />
									<else/>
										<img src="__ROOT__/{$c.pic}" width="65" height="65" alt="" />
									</if>
								</a>
							</div>
							<div class="p5">
								<p class="gray p5"><a class="gray f12" href="">{$c.email} [{$c.nickname}]</a></p>
								<p class="p5 f14">{$c.content}</p>
								<p class="gray p5 f12">{$c.addtime|hd_date:'Y-m-d H:i:s'}</p>
							</div>
						</div>
					</list>
					<!-- 用户评论结束 -->
					<!-- 分页 -->
					<div class="pageAjax page mt10"> {$page} </div>
				</div>
			</div>
			<!-- 评论区域结束 -->
		</div>
		<!-- 左侧结束 -->
		<!-- 右侧开始 -->
		<div class="f w300 l">
			<div class="bsd2 bde bgwhite">
				<div class="lh30 pl20 fm b rel mt10">影片介绍 <b class="abs bgblue h30 w5 f0 l-5 t0">&nbsp;</b></div>
				<div class="p20 gray lh20">
					{$field.intros}
				</div>
			</div>
			
			<div class="bsd2 bde mt20 bgwhite">
				<div class="lh30 pl20 fm b rel mt10">更多系列 <b class="abs bgblue h30 w5 f0 l-5 t0">&nbsp;</b></div>
				<div class="p10">
					<xilie row="10">
						<a href="{$x.urls}" class="mr{$x.mod} dib w125 black fm f14 tc mt10 bgblack"><img class="w125 h175 img5" src="__ROOT__/{$x.pic}" alt="{$x.title}" /><span class="p5 dib bgwhite pct100">{$x.title}</span></a>
					</xilie>
				</div>
			</div>
		</div>
		<!-- 右侧结束 -->
	</div>
	<!-- 内容结束 -->

<!-- 登陆区域 -->
<div id="Login" class="dn">
	<div class="w600 fm mt20">
		<form action="{|U('User/login')}" method="post" onsubmit="return loginAjax(this);">
			<p class="p10 fix">
				<span class="w100 dib mr15 tr f14">常用邮箱</span>
				<input name="email" type="text" class="pct50 p5 f14" />
			</p>
			<p class="p10 fix mt20">
				<span class="w100 dib mr15 tr f14">密码</span>
				<input name="pwd" type="password" class="pct50 p5 f14" />
			</p>
			<p class="p10 fix mt20">
				<span class="w100 dib mr15 tr f14"></span>
				<label for="au">
					<input name="auto" type="checkbox" id="au" class="" checked="" /> 下次自动登陆
				</label>
				<!-- <a href="" class="ml30 pl30">忘记密码了</a> -->
			</p>
			<p class="p10 fix f18 mt20">
				<span class="w100 dib mr15 tr f14"></span>
				<input type="submit" class="btn bgblue pct50" value="登 陆" />
			</p>
			<p class="p10 fix mt20">
				<span class="w100 dib mr30 tr f14"></span>
				<span class=" dib tr f14">
					还没有账号？ <a href="{|U:'User/reg'}">立即注册</a>
				</span>
			</p>
		</form>
	</div>
</div>
<!-- 登陆区域结束 -->


<script type="text/javascript">
	var sessionUid = '{$hd.session.user.uid}';
	var sessionEmail = '{$hd.session.user.email}';
	var sessionNickName = '{$hd.session.user.nickname}';
	var loginHtml = $('#Login').clone();
	function ajax(id){ //发表评论
		var url = $(id).attr('action'),
			cont = $(id).find('[name=content]'),
			warp = $('#commentWrap');
		$.post(url,$(id).serialize(),function(re){
			if(re.state){
				h='\
				<div class="bbd ml20 mr20 mt10 pb10 pl80 rel">\
					<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>\
					<div class="p5">\
						<p class="gray p5"><a class="gray f12" href="">'+sessionEmail+' ['+sessionNickName+']</a></p>\
						<p class="p5 f14">'+re.data.content+'</p>\
						<p class="gray p5 f12">'+re.data.addtime+'</p>\
					</div>\
				</div>\
				';
				$.msg({
					str:re.msg,
					close:function(){
						cont.focus();
					}
				})
				cont.val('');
				warp.prepend(h);
				var dn = Number($('#commentNumDown').text())+1;
				$('#commentNumDown').text(dn);
			}else{
				alert(re.msg);
			}
		},'json')
		return false;
	}

	$('#commcont').click(function(){
		checkLogin();
	})
	
</script>





<include file="__PUBLIC__/bottom.html" />